
export class QueueFunction{
    public delay:number;//s
    public unique:boolean;
    public id:number;

    public mainFunc;

    private _pharse:number = 0;
    public update(dt:number){
        if(this._pharse >= this.delay){
            return this.mainFunc();
        }else{
            this._pharse += dt;
            return false;
        }
    }
}